<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
<title>赌我会瘦</title>
<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>
</head>
<!-- end header -->

<body>
  <div class="page-group">
    <div class="page page-current shopping-result-page bg-white">
      <header class="bar bar-nav fb-header">
              <a class="icon icon-left pull-left"></a>
              <h1 class="title">支付结果确认中</h1>
            </header>
      <div class="content">
        <div class="content-padded">
          <!-- <div class="success-layout text-center">
            <span class="iconfont icon-pay-success"></span>
            <p class="no-margin">正在获取支付结果...</p>
          </div> -->
          
          <div class="success-layout text-center">
            <img style="width: 100px;" src="${ctx.resource}/images/pay-waiting.gif" alt="" />
            <p class="no-margin" style="color: #666; text-transform: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;">正在获取支付结果...</p>
          </div>
          
          <a href="${ctx.host}/profile/bets/${salesOrder.userBet.bet.id}/open" class="hide" id="redirect">开启挑战</a>
          
          <%-- <div class="button-layout">
            <a href="${ctx.host}/users/${salesOrder.user.id}/bets/${salesOrder.userBet.bet.id}/share" class="button button-big fb-button join-button">邀请好友参与</a>
            
          </div> --%>
        </div>
        <%-- <div class="content-block">
          <p><a href="${ctx.host}/activities/1/share" class="button button-big">邀请好友参与</a></p>
          <p><a href="${ctx.host}/activities/1/open" class="button button-big">返回详情页</a></p>
        </div> --%>
      </div>
    </div>
  </div>
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/cmomon.js" />
  <script type="text/javascript">
    require(['page/common'], function(page) {
      page.init({
        "jsConfig": JSON.parse('${jsConfig}'),
        "avatar": '${salesOrder.userBet.user.avatar}',
        "reloadToOpen": "true",
        "userName": '${salesOrder.user.nickname}'
      })
    })
  </script>
</body>
</html>